package com.xuecheng.content.agent;
import com.xuecheng.api.content.media.model.dto.MediaDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
/**
 * <p>
 *     内容管理对媒资的 Feign 的远程调用
 * </p>
 *
 * @Description:
 */
@FeignClient(value = XcFeignServiceNameList.XC_MEDIA_SERVICE)
public interface MediaApiAgent {
    @GetMapping("/media/l/media/{mediaId}")
    RestResponse<MediaDTO> getById(@PathVariable Long mediaId);
}